import fetch from '@/utils/fetch'

export function getList(query) {
  return fetch({
    url: '/businessmonitor/getList',
    method: 'get',
    params: query
  })
}

export function changeFrequency(query) {
  return fetch({
    url: '/businessmonitor/changeFrequency',
    method: 'POST',
    params: query
  })
}

export function toIndex(query) {
  return fetch({
    url: '/businessmonitor/toIndex',
    method: 'get',
    params: query
  })
}

export function getMapData(query) {
  return fetch({
    url: '/appDashboard/getData',
    method: 'POST',
    params: query
  })
}

export function getMonitorByModule(query) {
  return fetch({
    url: '/businessmonitor/getMonitorByModule',
    method: 'get',
    params: query
  })
}
